<?php
/**
 * User: 呆呆
 * Agreement: 禁止使用本软件（系统）用于任何违法违规业务或项目,造成的任何法律后果允由使用者（或运营者）承担
 * Date: 2021/3/3
 * Time: 14:34
 */
 
@header('Content-Type: text/html; charset=UTF-8');
$_SERVER['REQUEST_METHOD']=='GET' ? $api = $_GET : $api = $_POST;//判断：GET和POST
?>
<head>
</head>
<body style="display: none;">
    <form id='alipaysubmit' name='alipaysubmit' action='/' method='POST'>
        <input  name='pid' value='<?php echo $api['pid'];?>'/>
        <input  name='type' value='<?php echo $api['type'];?>'/>
        <input  name='out_trade_no' value='<?php echo $api['out_trade_no'];?>'/>
        <input  name='money' value='<?php echo $api['money'];?>'/>
        <input  name='return_url' value='<?php echo $api['return_url'];?>'/>
        <input  name='notify_url' value='<?php echo $api['notify_url'];?>'/>
        <input  name='name' value='<?php echo $api['name'];?>'/>
        <input  name='sitename' value='<?php echo $api['sitename'];?>'/>
        <input  name='sign' value='<?php echo $api['sign'];?>'/>
        <input  name='sign_type' value='MD5'/>
        <input  name='mid' value='<?php echo $api['mid'];?>'/>
        <input type='submit' value='POST' style='display:none;'>
    </form>
    <script>document.forms['alipaysubmit'].submit();</script>
</body>